import Cookies from 'js-cookie'

const TokenKey = 'vue_projectmanager_token'
const Account = 'vue_projectmanager_account'

export function getValue(key){
  return Cookies.get(key)
}

export function setKeyValue(key,value){
  return Cookies.set(key,value)
}

export function getAuths(){
  return Cookies.get("auths")
}

export function setAuths(auths){
  return Cookies.set("auths",auths)
}

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getAccount(){
  return Cookies.get(Account)
}

export function setAccount(account){
  return Cookies.set(Account,account)
}

export function removeAccount(){
  return Cookies.get(Account)
}
